package io.gitee.zhangbinhub.admin.oauth.po

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank

/**
 * @author zhang by 08/01/2019
 * @since JDK 11
 */
@Schema(description = "更新当前用户信息参数")
data class UserInfoPo(

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "名称不能为空")
    var name: String? = null,

    @Schema(description = "手机号")
    var mobile: String? = null,

    @Schema(description = "头像图片base64数据")
    var avatar: String? = null,

    @Schema(description = "原密码")
    var oldPassword: String? = null,

    @Schema(description = "新密码")
    var password: String? = null

)
